<template>
	<view class="helpDetail">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
    export default{
		name:"helpDetail",
		data(){
			return{
				content:'',
				id:''
			}
		},
		onLoad(query){
			this.id=query.id
		},
		onShow(){
			this.getHelpDetail(this.id)
		},
		methods:{
			async getHelpDetail(id){
				let resData= await this.$apis.getHelpDetail({id:id})
				this.content=this.$util.formatRichText(resData.data.model.detail)
			}
		}
	}
</script>

<style lang="less" >
	image{
		max-width: 100% !important;
	}
</style>
